import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Mui from '@/components/mui'
import Home from '@/components/home'
import Cart from '@/components/cart'
import Contact from '@/components/contact'
import Search from '@/components/search'
import NewsList from '@/components/newsList'
import Detail from '@/components/detail'
import Potolist from '@/components/potolist'
import PotoInfo from '@/components/potoInfo'
import Products from '@/components/products'
import Goodinfor from '@/components/goodinfor'



Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // },
    {path:'/',component: Home},
    {path:'/home',component: Home},
    {path:'/cart',component: Cart},
    {path:'/contact',component: Contact},
    {path:'/search',component: Search},
    {path:'/home/newsList',component:NewsList},
    {path:'/home/potolist',component:Potolist},
    {path:'/newsList/detail/:id',component:Detail},
    {path:'/potoInfo/:id',component:PotoInfo},
    {path:'/home/products',component:Products},
    {path:'/goodinfor/:id',component:Goodinfor}

    

    
  ],
  linkActiveClass:'mui-active'
})
